//
//  XHFirstCell.h
//  elxc
//
//  Created by fengyn on 16/3/14.
//  Copyright © 2016年 lexingsoft. All rights reserved.
//

#import <UIKit/UIKit.h>
static NSString * const XHFirstCellIdentifier = @"XHFirstCellIdentifier";

@class XHButtonView;
@protocol XHButtonViewDelegate <NSObject>
- (void)buttonViewDidSelectedAction:(XHButtonView *)sender;
@end

@protocol XHFirstCellDelegate <NSObject>
- (void)helpButtonAction:(id)sender;
- (void)cellDidSelectedData:(NSDictionary *)data index:(NSInteger)index;
@end

@interface XHFirstCell : UITableViewCell<XHButtonViewDelegate>
@property (weak, nonatomic) id<XHFirstCellDelegate> delegate;
@property (weak, nonatomic) IBOutlet UILabel *ui_titleLabel;
@property (weak, nonatomic) IBOutlet UIView *ui_lineView;
@property (weak, nonatomic) IBOutlet UIView *ui_borderView;
@property (weak, nonatomic) IBOutlet UIButton *ui_helpButton;
@property (strong, nonatomic) NSArray *m_dataArray;
@property (nonatomic, assign) CGFloat rowHeight;
- (void)setdata:(NSArray *)productArray;
- (void)setButtonSelectedWithTag:(NSInteger)tag;
@end



@interface XHButtonView : UIView
@property (weak, nonatomic) id<XHButtonViewDelegate> delegate;
@property (nonatomic, weak) UIButton *button;
@property (nonatomic, weak) UILabel *titleLabel;
@property (nonatomic, weak) UILabel *detailLabel;
@property (nonatomic, weak) UIImageView *tagImageView;
@property (nonatomic, assign) BOOL isCanSelected;
@property (nonatomic, weak) CALayer *borderlayer;
- (void)setSelected:(BOOL)selected;
@end
